using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ListDisplayable : DisplayableBase
{
    public new List_ Data;
    public static int CurrentIndex;
    public ListDisplayable(DataBase data) : base(data)
    {
        Data = data as List_;
        DrawItem = GameGraphics.Ins.listItem;
        
    }
    public override void Draw(int id)
    {
        CurrentIndex++;
        base.Draw(id);
        ((DrawList) CurrentDrawItem).DrawListItem(Data,id);
    }

    public override int GetIndex()
    {
        return CurrentIndex;
    }
    public override void Hide()
    {
        base.Hide();
        CurrentIndex = 0;
    }
}
